<?php
/*
 * notes view filter 
@author: Colin hom
@package: notes
@subpackage: templates
 */
?>
<form method="post" action="#" id="select-semester">
	<fieldset>
		<label>Semester</label>
		<select id="semester" name="semester_id">
				<option value="">All</option>
			<?php foreach($semesters as $semester): ?>
				<option value="<?php echo $semester->getId() ?>" <?php echo $semester->getId() == $semester_id ? 'selected="selected"' : ''?>>
					<?php echo $semester->getTerm() ?> <?php echo $semester->getYear('Y') ?>
				</option>
			<?php endforeach ?>
        </select>
		<label>Lecture</label>
			<input type="text" size="2px" name="lecture" id="lecture" />       
		<label><input type="submit" value="Go" /></label>
	</fieldset>
</form>